package com.atstudy.headline.web.app.service;

import com.atstudy.headline.entity.Contents;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author A
* @description 针对表【contents(内容基础信息表)】的数据库操作Service
* @createDate 2025-06-12 13:55:56
*/
public interface ContentsService extends IService<Contents> {

    IPage<Contents> pageInfoByContents(IPage<Contents> page);

    //根据id查询内容详情
    Contents getContentById(Integer contentId);

    IPage<Contents> getContentsByUserIdPage(Integer userId, IPage<Contents> page);

    IPage<Contents> getContentByFavorites(IPage<Contents> page,Integer userId);

    IPage<Contents> getHistory(IPage<Contents> page,Integer userId);
    IPage<Contents> getContentByCategoryId(IPage<Contents> page,Integer categoryId);
}
